package com.tencent.txcc;


import com.tencent.txcc.result.JSONResult;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class MediaServiceFallbackFactory implements FallbackFactory<MediaService> {


    @Override
    public MediaService create(Throwable throwable) {
        return new MediaService() {
            @Override
            public JSONResult getMediaFileByCourseId(Long courseId) {
                return JSONResult.error();
            }
        };
    }
}
